import { ref } from 'vue'
import type pageContent from '@/components/pageContent/page-content.vue'

function usePageCount() {
  const contentRef = ref<InstanceType<typeof pageContent>>()

  function handleQueryClick(formData: any) {
    contentRef.value.getPageListData(formData)
  }

  function handleRestClick() {
    contentRef.value.getPageListData()
  }

  return { contentRef, handleQueryClick, handleRestClick }
}

export default usePageCount
